<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    //商城首页加载
    public function index(){
        $indexdata=state_product_list(4);
        $saledata=state_product_list(3);
        $hotdata=state_product_list(2);
        $this->assign('index',$indexdata);
        $this->assign('sale',$saledata);
        $this->assign('hot',$hotdata);
        $this->display('/index');
    }
    public function personal(){
        $this->display('/personal');
    }
}